home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
examples
/
moon.ray
< prev
next >
Wrap
Text File
|
1994-08-09
|
1KB
|
47 lines
/* fractal mountain
* Peter Janssen - dpt. computer science K.U.Leuven, Leuven, Belgium
* e-mail: philippe@cs.kuleuven.ac.be */
eyep 0 100 50
lookp 0 0 20
up 0 0 1
screen 400 400
light 0.5 point 0 0 120
light 0.5 point 20 -80 140
light 0.3 point -90 80 120
surface moon ambient 0.15 0.15 0.15
diffuse 0.55 0.55 0.55
reflect 0.8
mountain moon -100 -100 100 100 /* coordinates of base */
3000 /* random seed */
0.8 /* fractal dimension = 3-0.8 = 2.2 */
10 /* precalculation level */
10 /* max. calculation level */
50.0 /* random displacement scale factor */
0 0 80 /* matrix of initial height values */
0 0 80
0 0 80
#define EXPAND(x) scale x x x
#define LACUNARITY 2.
#define OCTAVES 6
sample 6
/* the planet */
sphere ambient .06 .05 .04
diffuse .9 .85 .8
40 -4 -142 30
texture fbm 0. /* offset */
1. /* scale */
0.3 /* h */
LACUNARITY /* lambda */
OCTAVES /* octaves */
-.2 /* thresh */
planet.map /* mapname */
EXPAND(50)